I. Interpretation of file permissionsAs shown, the beginning of the-rwxrw-r--string identifies the file permissions.This string has 10 bits, which can be divided into 4 segments to interpret. Note: r--readable, w--writable, x--executable.The first
Chmod is the right to change a file Chown is the owner and genus of the modified file Chgrp only the genus group that changed the file.I. Interpretation of file permissionsAs shown, the beginning of the-rwxrw-r--string identifies the file
directive Name: chmodUsage rights: All usersMode of use: chmod [-CFVR] [--help] [--version] Mode file ...Description: Linux/unix file access rights are classified into three levels: file owners, groups, and others. The use of chmod can beTo control
using Linux/unix next. Often use the text interface to set up the system or the operating system, the author is in command of this aspect of the process of continuous contact. Therefore, in order toThis special brewing, preparation, began the
Change file ownershipchownFor examplesudo chown username myfile
1
myfileOwnership of the file becomes username .chown -R username /files/work
1
Add Parameters -R , work folders, and all the files and subdirectories in the
Iv. Linux/UNIX operating command accumulation [chmod, chown, tail], chmodchownIn Linux/UNIX, users often use the text interface to set the system or operating system. The author is constantly in touch with this command during his work, therefore,
Linux File Permission chmod chown
1. Linux File Access Permissions
Chmod is short for change mode. Similarly, chown is the abbreviation of change owner. One is to change the access permission of the file, and the other is to change the owner of the
1, CHGRP (change the file belongs to user group) changes groupCHGRP user Group filename # # #便是这个格了. If the entire contents are changed, the plus-r parameter is used for recursion.Example: Chgrp-r user smb.conf2. Chown (transform file owner) Change
chgrp Change Group changes the user group that the file belongs to eg. Chgrp-r User 1.txt[[email protected] test]# ll Query the files and properties under the test directory total 0 is now empty, no files [[email protected ] test]
1, CHGRP (change the file belongs to the user group)CHGRP user Group filename # # #便是这个格了. If the entire contents are changed, the plus-r parameter is used for recursion.Example: Chgrp-r user smb.conf2. Chown (change file owner)Landscape: A:chown
1. Linux File access rights
chmodis the abbreviation for change mode. The chown same is the abbreviation for change owner, one that changes the access rights of the file, and one that changes the owner of the file.
2. Change file
each file and directory in a Linux system has access permissions, which are used to determine who can access and manipulate files and directories. access to a file or directory is divided into read-only, write-only, and executable three types. As an
User groupsEach user in Linux must belong to a group and cannot be independent of the group. Each file in Linux has the concept of owner, group, other group-Owner-Group-Other groups-Change the group where the user is locatedOwnerTypically the
under the use of Linux/unix, often use the text interface to set up the system or operating system, the author himself in the process of work is also constantly in touch with this command, so forThis special brewing, preparation, began the writing
Command name: chmod
Permission: All Users
Usage: chmod [-CFVR] [-- help] [-- version] mode file...
Note: file access permissions for Linux/Unix are classified into three levels: file owner, group, and others. Chmod can be used to control how files
You can master the following commands for Linux to master various permissions in the operating system.
Permission: All UsersUsage: chmod [-CFVR] [-- help] [-- version] mode file...Note: file access permissions for Linux/Unix are classified into
Http://www.justwinit.cn/post/2295/
Every time you go to chmod-R *; chown-r nobody. nogroup * is very troublesome. Write a script to solve it. Then you can directly call the securecrt script -- run -- select the script!CodeAs follows:
Sub mainCRT.
Linux File Permission chmod chown1. Linux File Access Permissions
Chmod is short for change mode. Similarly, chown is the abbreviation of change owner. One is to change the access permission of the file, and the other is to change the owner of the
The permissions on Linux have the ability to master the various permissions in the operating system with the following commands.Usage rights: All usersMode of use: chmod [-CFVR] [--help] [--version] Mode file ...Description: Linux/unix file access
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.